package com.gree.ssm.utils;

import javax.servlet.http.HttpServletResponse;
import java.io.PrintWriter;

/**
 * @Author :xiaossong
 * @Description:
 * @Date Created in 下午11:29 2017/10/15
 */
public class ResponseUtil {


    public static void write(HttpServletResponse response, Object o)throws Exception{
        response.setContentType("text/html;charset=utf-8");
        PrintWriter out=response.getWriter();
        out.println(o.toString());
        out.flush();
        out.close();
    }
}
